﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<AFI.Speargun.Web.Models.AssetInventory>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    盘点信息 - 新建 -
    <%= ViewData["AssetEntry.Appellation"]%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        新建</h2>
    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>
    <% using (Html.BeginForm())
       {%>
    <fieldset>
        <legend>盘点信息</legend>
        <p>
            <label for="CheckingDate">
                盘点日期:</label>
            <%= Html.TextBox("CheckingDate", DateTime.Now.ToShortDateString(), new { @class = "input-box", @size = 20 })%>
            <%= Html.ValidationMessage("CheckingDate", "*") %>
        </p>
        <p>
            <label for="Quantity">
                数量:</label>
            <%= Html.TextBox("Quantity", null, new { @class = "input-box", @size = 10 })%>
            <%= Html.ValidationMessage("Quantity", "*") %>
        </p>
        <p>
            <label for="ActualUsePerson">
                使用人:</label>
            <%= Html.TextBox("ActualUsePerson", null, new { @class = "input-box", @size = 50 })%>
            <%= Html.ValidationMessage("ActualUsePerson", "*") %>
        </p>
        <p>
            <label for="ActualUseDate">
                使用日期:</label>
            <%= Html.TextBox("ActualUseDate", null, new { @class = "input-box", @size = 20 })%>
            <%= Html.ValidationMessage("ActualUseDate", "*") %>
        </p>
        <p>
            <label for="ResponsiblePerson">
                责任人:</label>
            <%= Html.TextBox("ResponsiblePerson", null, new { @class = "input-box", @size = 50 })%>
            <%= Html.ValidationMessage("ResponsiblePerson", "*") %>
        </p>
        <p>
            <label for="AssetStatus">
                资产状态:</label>
            <%= Html.DropDownList("AssetStatus", null, new { @class = "input-box" })%>
            <%= Html.ValidationMessage("AssetStatus", "*") %>
        </p>
        <p>
            <label for="Result">
                盘点结果:</label>
            <%= Html.DropDownList("Result", null, new { @class = "input-box" })%>
            <%= Html.ValidationMessage("Result", "*") %>
        </p>
        <p>
            <label for="Description">
                盘点说明:</label>
            <%= Html.TextArea("Description", null, new { @class = "input-box", @cols = 50, @rows = 4 })%>
            <%= Html.ValidationMessage("Description", "*") %>
        </p>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
    <% } %>

    <script type="text/javascript">
        $(document).ready(function() {
            $("#CheckingDate").datepicker();
            $("#ActualUseDate").datepicker();
        });
	</script>

    <div>
        <%=Html.ActionLink("返回到列表", "Index", new { id = ViewData["AssetEntryId"] })%>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="LeftContent" runat="server">
    <% Html.RenderPartial("AssetEntryMenu", ViewData["AssetEntryId"].ToString()); %>
</asp:Content>
